"""
后台管理序列化器
用于系统配置、操作日志等数据的序列化与反序列化
"""

from rest_framework import serializers
from .models import SystemConfig, OperationLog, AdminPermission


class SystemConfigSerializer(serializers.ModelSerializer):
    """系统配置序列化器"""
    class Meta:
        model = SystemConfig
        fields = '__all__'


class OperationLogSerializer(serializers.ModelSerializer):
    """操作日志序列化器"""
    class Meta:
        model = OperationLog
        fields = '__all__'


class AdminPermissionSerializer(serializers.ModelSerializer):
    """管理员权限序列化器"""
    class Meta:
        model = AdminPermission
        fields = '__all__'